package com.zhiyou100.service.impl;

import com.zhiyou100.entity.Rose;
import com.zhiyou100.mapper.RoseMapper;
import com.zhiyou100.service.RoseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 角色 服务层 实现类
 *
 * @author yang
 * @version 1.0.0
 * @date 2020-09-01 17:57
 */
@Service
public class RoseImpl implements RoseService {
    @Autowired
    private RoseMapper mapper;

    @Override
    public List<Rose> list() {
        return mapper.list();
    }

    @Override
    public Rose selectOne(Integer id) {
        return mapper.selectOne(id);
    }

    @Override
    public void updateOne(Rose rose) {
        mapper.updateOne(rose);
    }

    @Override
    public void deleteOne(Integer id) {
        mapper.deleteOne(id);
    }

    @Override
    public void insertOne(Rose rose) {
        mapper.insertOne(rose);
    }
}
